package com.tro.mail.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tro.mail.dao.entity.MailInbox;
import com.tro.mail.dao.entity.MailInboxExample;
import com.tro.mail.dao.mapper.MailInboxMapper;
import com.tro.mail.service.MailInboxManager;
import com.tro.mail.vo.InBoxVO;
import com.tro.mail.vo.InBoxVOSearch;
@Service
public class MailInboxManagerImp implements MailInboxManager{
	@Autowired
	MailInboxMapper mapper;
	

	@Override
	public int countByExample(MailInboxExample example) {

		return mapper.countByExample(example);
	}

	@Override
	public int deleteByExample(MailInboxExample example) {

		return mapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Long id) {

		return mapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(MailInbox record) {

		return mapper.insert(record);
	}

	@Override
	public int insertSelective(MailInbox record) {

		return mapper.insertSelective(record);
	}

	@Override
	public List<MailInbox> selectByExample(MailInboxExample example) {

		return mapper.selectByExample(example);
	}

	@Override
	public MailInbox selectByPrimaryKey(Long id) {

		return mapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(MailInbox record, MailInboxExample example) {

		return mapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(MailInbox record, MailInboxExample example) {

		return mapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(MailInbox record) {

		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(MailInbox record) {

		return mapper.updateByPrimaryKey(record);
	}

	@Override
	public List<InBoxVO> selectInBoxList(InBoxVOSearch search) {
		return mapper.selectInBoxList(search);
	}

	@Override
	public List<InBoxVO> selectForderMailList(InBoxVOSearch search) {
		return mapper.selectForderMailList(search);
	}

	@Override
	public int selectForderMailCount(InBoxVOSearch search) {
		return mapper.selectForderMailCount(search);
	}
    
}